-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (32 loc) · 841 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (32 loc) · 841 Bytes
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
version: '3.5'
services:
webapp:
container_name: webapp
restart: always
image: registry.gitlab.com/emumba/devops/aws-bootcloud:github
ports:
- 5000:5000
env_file: .env
database:
image: "postgres"
env_file: .env
volumes:
- type: volume
source: postgres-data
target: /var/lib/postgresql/data/
migration:
image: registry.gitlab.com/emumba/devops/aws-bootcloud:github
env_file: .env
command: /bin/bash -c "sleep 5 && python manage.py db upgrade"
depends_on:
- database
restart: on-failure
dumpAdminData:
image: registry.gitlab.com/emumba/devops/aws-bootcloud:github
env_file: .env
command: /bin/bash -c "sleep 6 && python dump_admin_record.py"
depends_on:
- database
- migration
volumes:
postgres-data: