-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
61 lines (57 loc) · 1021 Bytes
/
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
version: '3.8'
services:
auth:
container_name: auth-service
build:
context: .
volumes:
- .:/app
ports:
- '4000:4000'
command: [sh, -c, "npm run run-migrations && npm run start:dev"]
env_file:
- .env
networks:
- authnet
depends_on:
- postgres
postgres:
container_name: postgres
image: postgres:12
expose:
- '5432'
ports:
- '5432:5432'
volumes:
- /data/postgres:/var/lib/postgresql/data
env_file:
- docker.env
networks:
- authnet
pgadmin:
links:
- postgres:postgres
container_name: pgadmin
image: dpage/pgadmin4
ports:
- '8080:80'
volumes:
- /data/pgadmin:/root/.pgadmin
env_file:
- docker.env
networks:
- authnet
redis:
container_name: cache
image: 'redis'
expose:
- '6379'
ports:
- '6379:6379'
env_file:
- docker.env
networks:
- authnet
networks:
authnet:
driver: bridge