-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
90 lines (84 loc) · 1.75 KB
/
docker-compose.yaml
File metadata and controls
90 lines (84 loc) · 1.75 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
volumes:
database_data:
storage_data:
broker_data:
networks:
storage_net:
driver: bridge
ipam:
config:
- subnet: 180.25.0.0/16
gateway: 180.25.0.1
services:
app:
image: pixelgrid/app:latest
build:
context: ./services/web
target: web-production
env_file:
- ./services/web/.env
environment:
- STORAGE_S3_ENDPOINT=http://180.25.0.2:9000
ports:
- 3000:3000
networks:
default:
storage_net:
ipv4_address: 180.25.0.3
depends_on:
database:
condition: service_started
storage:
condition: service_healthy
broker:
condition: service_healthy
restart: true
app-classifier:
build:
context: ./services/web
target: classifier-production
env_file:
- ./services/web/.env
environment:
- STORAGE_S3_ENDPOINT=http://180.25.0.2:9000
networks:
default:
storage_net:
ipv4_address: 180.25.0.4
depends_on:
database:
condition: service_started
storage:
condition: service_healthy
broker:
condition: service_healthy
restart: true
database:
image: postgres:16-alpine
volumes:
- database_data:/var/lib/postgresql/data
env_file:
- ./services/database/.env
ports:
- 5432:5432
storage:
build: ./services/storage
env_file:
- ./services/storage/.env
volumes:
- storage_data:/data
ports:
- 9000:9000
- 9001:9001
networks:
storage_net:
ipv4_address: 180.25.0.2
broker:
build: ./services/broker
ports:
- 15672:15672
- 5672:5672
env_file:
- ./services/broker/.env
volumes:
- broker_data:/var/lib/rabbitmq/