-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (59 loc) · 1.2 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
version: '3.6'
services:
server:
image: atb00ker/insurance-ng:latest
build:
context: .
dockerfile: Dockerfile
volumes:
- ./deploy/private.pem:/go/src/app/private.pem:ro
- ./deploy/jwks.json:/go/src/app/jwks.json:ro
- ./.env:/go/src/app/.env:ro
- react_data:/go/src/app/dist/
ports:
- 3000:3000
env_file:
- .env
depends_on:
- db
db:
image: postgres:alpine
environment:
- POSTGRES_DB=$DB_NAME
- POSTGRES_USER=$DB_USER
- POSTGRES_PASSWORD=$DB_PASS
- POSTGRES_HOST_AUTH_METHOD=trust
env_file:
- .env
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
nginx:
image: nginx:alpine
ports:
- 443:443
env_file:
- .env
volumes:
- ./deploy/nginx/:/etc/nginx/conf.d/:ro
- react_data:/etc/nginx/dist/
entrypoint: [nginx, '-g', 'daemon off;']
depends_on:
- db
- server
adminer:
image: adminer
restart: always
ports:
- 9080:8080
volumes:
postgres_data: {}
react_data: {}
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.21.0.0/16