-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·57 lines (51 loc) · 1.28 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
version: "3.6"
services:
postgres:
container_name: postgres
build:
context: .
dockerfile: docker/postgres/Dockerfile
restart: on-failure
environment:
POSTGRES_DB: fluoride_dev
POSTGRES_USER: ayush
POSTGRES_PASSWORD: ayush
volumes:
- pgdata:/var/lib/postgresql/data/
ports:
- 5432:5432
networks:
- backend
server:
container_name: server
build:
context: .
dockerfile: docker/server/Dockerfile
restart: on-failure
volumes:
- gocache:/go/pkg/mod/cache
environment:
APPLICATION_ENV: development
DATABASE_HOST: postgres
DATABASE_DATABASE: fluoride_dev
DATABASE_USERNAME: ayush
DATABASE_PASSWORD: ayush
DATABASE_SSL: disable
PROFILER_HOST: 0.0.0.0
PROFILER_PORT: 3001
SERVER_HOST: 0.0.0.0
SERVER_PORT: 3000
ports:
- 3000:3000
depends_on:
- postgres
networks:
- backend
volumes:
pgdata:
driver: local
gocache:
driver: local
networks:
backend:
driver: bridge