-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.override.yml
56 lines (52 loc) · 1.37 KB
/
docker-compose.override.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
# docker-compose.override.yml
version: "3.8"
services:
postgres:
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
ports:
- "5432:5432"
backend:
build:
context: ./backend
target: builder
image: riotjs-nginx-example-backend-dev:master
environment:
DEBUG: "true"
SSL_CERT_PATH: /etc/ssl/certs/cert.pem
SSL_KEY_PATH: /etc/ssl/private/privkey.pem
ports:
- "5000:5000"
volumes:
- ${PWD}/backend:/app/
- ${HOME}/.ssl/certs/localhost.pem:/etc/ssl/certs/cert.pem
- ${HOME}/.ssl/private/localhost.pem:/etc/ssl/private/privkey.pem
frontend:
build:
context: ./frontend
target: dev-server
container_name: frontend
hostname: frontend
image: riotjs-nginx-example-frontend-dev:master
command: npm run start
networks:
- riotjs-nginx-example-network
expose:
- "3000"
ports:
- "3000:3000"
restart: on-failure
volumes:
- ${PWD}/frontend/src:/var/www/app/src
nginx:
command: sh -c "
wait-for.sh adminer:8080 &&
wait-for.sh backend:5000 &&
wait-for.sh frontend:3000 &&
nginx -g 'daemon off;'"
depends_on:
- adminer
- backend
- frontend
volumes:
- ${PWD}/nginx/dev.nginx.conf:/etc/nginx/conf.d/default.conf
- ${PWD}/scripts/wait-for.sh:/bin/wait-for.sh