This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
117 lines (110 loc) · 2.74 KB
/
docker-compose.yml
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
113
114
115
116
117
version: '2'
services:
caronae-backend:
container_name: caronae-backend
image: caronae/backend:${CARONAE_ENV_TAG}
depends_on:
- postgres
- redis
env_file:
- config.env
- secrets/.env
restart: always
logging:
driver: awslogs
options:
awslogs-region: ${AWS_LOG_REGION}
awslogs-group: ${AWS_LOG_GROUP}
awslogs-stream: backend
caronae-backend-worker:
container_name: caronae-backend-worker
image: caronae/backend:${CARONAE_ENV_TAG}
command: queue
depends_on:
- caronae-backend
env_file:
- config.env
- secrets/.env
environment:
- LOG_STREAM=php://stdout
restart: always
logging:
driver: awslogs
options:
awslogs-region: ${AWS_LOG_REGION}
awslogs-group: ${AWS_LOG_GROUP}
awslogs-stream: backend-worker
caronae-backend-task-scheduler:
container_name: caronae-backend-task-scheduler
image: caronae/backend:${CARONAE_ENV_TAG}
command: scheduler
depends_on:
- caronae-backend
env_file:
- config.env
- secrets/.env
restart: always
logging:
driver: awslogs
options:
awslogs-region: ${AWS_LOG_REGION}
awslogs-group: ${AWS_LOG_GROUP}
awslogs-stream: backend-task-scheduler
caronae-ufrj-authentication:
container_name: caronae-ufrj-authentication
image: caronae/ufrj-authentication:${CARONAE_ENV_TAG}
env_file:
- config.env
- secrets/.env
restart: always
logging:
driver: awslogs
options:
awslogs-region: ${AWS_LOG_REGION}
awslogs-group: ${AWS_LOG_GROUP}
awslogs-stream: ufrj-authentication
nginx:
container_name: nginx
image: caronae/nginx
volumes_from:
- caronae-backend
- caronae-ufrj-authentication
ports:
- 8000:8000
- 8001:8001
restart: always
logging:
driver: awslogs
options:
awslogs-region: ${AWS_LOG_REGION}
awslogs-group: ${AWS_LOG_GROUP}
awslogs-stream: nginx
postgres:
container_name: postgres
image: postgres:9.6-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=caronae
- POSTGRES_DB=caronae
volumes:
- /data/postgres:/var/lib/postgresql/data
restart: always
logging:
driver: awslogs
options:
awslogs-region: ${AWS_LOG_REGION}
awslogs-group: ${AWS_LOG_GROUP}
awslogs-stream: postgres
redis:
container_name: redis
image: redis:alpine
volumes:
- /data/redis:/data
restart: always
logging:
driver: awslogs
options:
awslogs-region: ${AWS_LOG_REGION}
awslogs-group: ${AWS_LOG_GROUP}
awslogs-stream: redis