-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (61 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
79 lines (61 loc) · 1.28 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
version: '3'
services:
traefik:
image: traefik
ports:
- 443:443
- 80:80
volumes:
- ./traefik/acme.json:/etc/traefik/acme/acme.json
- ./traefik/traefik.toml:/etc/traefik/traefik.toml
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=false"
api:
user: www-data
image: api:latest
build:
context: ./api
environment:
- DB_USER=root
- DB_PASS=root
- DB_NAME=db
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.backend=api"
depends_on:
- db
- traefik
db:
# user: www-data
image: postgres:11.2
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=db
labels:
- "traefik.enable=false"
volumes:
- .data/:/var/lib/postgresql/data
web:
user: www-data
image: web:latest
build:
context: ./web
labels:
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.backend=web"
depends_on:
- api
- traefik
migrations:
image: migrations:latest
build:
context: ./migrations
command: /bin/true
labels:
- "traefik.enable=false"
volumes:
- ./migrations:/opt/