-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
112 lines (104 loc) · 2.41 KB
/
docker-compose.dev.yaml
File metadata and controls
112 lines (104 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
volumes:
database_data_dev:
storage_data_dev:
broker_data_dev:
networks:
storage_net_dev:
driver: bridge
ipam:
config:
- subnet: 180.24.0.0/16
gateway: 180.24.0.1
services:
app-dev:
build:
context: ./services/web
target: web-development
env_file:
- ./services/web/.env
environment:
- STORAGE_S3_ENDPOINT=http://180.24.0.2:9000
ports:
- 3000:3000
- 5555:5555
networks:
default:
storage_net_dev:
ipv4_address: 180.24.0.3
depends_on:
database-dev:
condition: service_started
storage-dev:
condition: service_healthy
broker-dev:
condition: service_healthy
restart: true
develop:
watch:
# Sync the working directory with the `/app` directory in the container
- action: sync
path: ./services/web/
target: /app
ignore:
- node_modules/
- action: rebuild
path: ./services/web/package.json
app-classifier-dev:
build:
context: ./services/web
target: classifier-development
env_file:
- ./services/web/.env
environment:
- STORAGE_S3_ENDPOINT=http://180.24.0.2:9000
networks:
default:
storage_net_dev:
ipv4_address: 180.24.0.4
depends_on:
database-dev:
condition: service_started
storage-dev:
condition: service_healthy
broker-dev:
condition: service_healthy
restart: true
develop:
watch:
# Sync the working directory with the `/app` directory in the container
- action: sync
path: ./services/web/
target: /app
ignore:
- node_modules/
- action: rebuild
path: ./services/web/package.json
database-dev:
image: postgres:16-alpine
volumes:
- database_data_dev:/var/lib/postgresql/data
env_file:
- ./services/database/.env
ports:
- 5432:5432
storage-dev:
build: ./services/storage
env_file:
- ./services/storage/.env
volumes:
- storage_data_dev:/data
ports:
- 9000:9000
- 9001:9001
networks:
storage_net_dev:
ipv4_address: 180.24.0.2
broker-dev:
build: ./services/broker
ports:
- 15672:15672
- 5672:5672
env_file:
- ./services/broker/.env
volumes:
- broker_data_dev:/var/lib/rabbitmq/