-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (40 loc) · 830 Bytes
/
docker-compose.yaml
File metadata and controls
41 lines (40 loc) · 830 Bytes
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
networks:
wordle:
services:
api:
command: ./wordle
container_name: wordle.api
image: api:latest
build:
context: .
dockerfile: api.Dockerfile
args:
- GO_ENV=${GO_ENV:-production}
networks:
- wordle
stdin_open: true
tty: true
restart: on-failure
depends_on:
- db
ports:
- "${PORT:-8080}:8080" # default port is 8080
environment:
- GO_ENV=${GO_ENV:-production}
- TZ=Asia/Hong_Kong
db:
container_name: wordle.db
image: db:latest
build:
context: .
dockerfile: db.Dockerfile
restart: on-failure
networks:
- wordle
ports:
- "5432:5432"
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=password
- TZ=Asia/Hong_Kong