-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.02 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
version: "3.8"
services:
todo_postgres:
container_name: todo_postgres
build:
context: .
dockerfile: Dockerfile.postgres
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "P@ssw0rd!"
PGDATA: "/data/postgres"
POSTGRES_DB: "todo"
ports:
- 15432:5432
volumes:
- todo_postgres:/data/postgres
restart: unless-stopped
networks:
- todo
todo_server:
container_name: todo_server
build:
context: server
dockerfile: Dockerfile
environment:
DATABASE_URL: postgres://postgres:P@ssw0rd!@todo_postgres:5432/todo
JWT_SECRET: jwtsecret
ports:
- 8081:8081
restart: unless-stopped
networks:
- todo
todo_yewapp:
container_name: todo_yewapp
build:
context: yewapp
dockerfile: Dockerfile
args:
GRAPHQL_ENDPOINT: http://localhost:8081/graphql
ports:
- 8080:80
restart: unless-stopped
networks:
- todo
volumes:
todo_postgres:
networks:
todo: