-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
76 lines (72 loc) · 1.76 KB
/
docker-compose.yaml
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
66
67
68
69
70
71
72
73
74
75
76
services:
proxy:
build:
context: .
dockerfile: traefik.Dockerfile
container_name: Proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./ssl/:/ssl/
develop:
watch:
- action: rebuild
path: traefik.yaml
ports:
- "80:80"
- "443:443"
- "8080:8080"
tic-tac-toe-website:
build:
context: .
dockerfile: website.Dockerfile
target: development
container_name: Tic-tac-toe-Website
env_file: .env
develop:
watch:
- action: sync
path: .
target: /app/
ignore:
- node_modules/
- action: rebuild
path: package.json
labels:
traefik.http.routers.tic-tac-toe-website.rule: Host(`localhost`)
traefik.http.routers.tic-tac-toe-website.tls: true
depends_on:
- postgres
tic-tac-toe-websocket:
build:
context: .
dockerfile: websocket.Dockerfile
target: development
container_name: Tic-tac-toe-Websocket
env_file: .env
develop:
watch:
- action: sync
path: .
target: /app/
ignore:
- node_modules/
- action: rebuild
path: package.json
labels:
traefik.http.routers.tic-tac-toe-websocket.rule: Host(`localhost`) && PathPrefix(`/socket.io`)
traefik.http.routers.tic-tac-toe-websocket.tls: true
depends_on:
- postgres
postgres:
image: postgres:17
container_name: Postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
volumes:
- tic-tac-toe-postgres:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT}:5432
volumes:
tic-tac-toe-postgres: