-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
82 lines (76 loc) · 1.72 KB
/
docker-compose.yaml
File metadata and controls
82 lines (76 loc) · 1.72 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
services:
nginx:
container_name: nginx
build:
context: ./apps/nginx
restart: always
ports:
- '80:80'
- '443:443'
volumes:
- ./apps/nginx/nginx.conf.template.ssl:/etc/nginx/nginx.conf.template.ssl:ro
- ./apps/nginx/entrypoint.sh:/entrypoint.sh:ro
- /home/ubuntu/certs:/etc/nginx/ssl:rw
networks:
- app-network
depends_on:
- app-${ACTIVE:-green}
environment:
- ACTIVE=${ACTIVE:-green}
env_file:
- .env
entrypoint: ['/bin/sh', '/entrypoint.sh']
vector:
container_name: vector
image: timberio/vector:latest-debian
restart: always
volumes:
- ./apps/nginx/vector.yaml:/etc/vector/vector.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- ./apps/nginx/.env
networks:
- app-network
worker:
container_name: worker
image: kix.ocir.io/axunckhvyv1v/logme-worker:${ACTIVE:-green}
restart: always
env_file:
- apps/worker/.env
- .env
networks:
- app-network
api:
container_name: api
image: kix.ocir.io/axunckhvyv1v/logme-api:${ACTIVE:-green}
restart: always
env_file:
- apps/api/.env
- .env
ports:
- '4000:4000'
networks:
- app-network
app-green:
container_name: app-green
image: kix.ocir.io/axunckhvyv1v/logme-app:green
restart: always
ports:
- '3001:3000'
env_file:
- apps/web/.env
networks:
- app-network
app-blue:
container_name: app-blue
image: kix.ocir.io/axunckhvyv1v/logme-app:blue
restart: always
ports:
- '3002:3000'
env_file:
- ./apps/web/.env
networks:
- app-network
networks:
app-network:
driver: bridge