-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.azure.yml
53 lines (51 loc) · 1.23 KB
/
docker-compose.azure.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
version: '3'
services:
web:
image: lifeoverflow.azurecr.io/fullstack-web
restart: always
environment:
- REACT_APP_API_URL
ports:
- "3000:3000"
tty: true
depends_on:
- api
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.entrypoints=web"
- "traefik.http.routers.web.rule=Host(`fullstack.$MY_DOMAIN`)"
# - "traefik.http.routers.web.tls.certresolver=lets-encr"
api:
image: lifeoverflow.azurecr.io/fullstack-api
restart: always
environment:
- POSTGRES_HOST=db
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
ports:
- "3001:3001"
depends_on:
- db
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.entrypoints=web"
- "traefik.http.routers.api.rule=Host(`api.$MY_DOMAIN`)"
# - "traefik.http.routers.api.tls.certresolver=lets-encr"
db:
image: postgres:12.1
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- pg-data-azure:/var/lib/postgresql/data/
volumes:
pg-data-azure:
networks:
default:
external:
name: $DEFAULT_NETWORK