-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (75 loc) · 1.63 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
84 lines (75 loc) · 1.63 KB
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
77
78
79
80
81
82
83
84
version: '3.9'
# ======================================= Services ======================================
services:
database:
build: deployement/database
image: database
container_name: database
restart: unless-stopped
env_file:
- .env
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
# volumes:
# - database:${CONTAINER_DATABASE_VLPATH}
networks:
- ft_transcendence
backend:
build:
context: .
dockerfile: deployement/backend/Dockerfile
image: backend
container_name: backend
restart: unless-stopped
env_file:
- .env
depends_on:
- database
ports:
- 8080
networks:
- ft_transcendence
frontend:
build:
context: .
dockerfile: deployement/frontend/Dockerfile
image: frontend
container_name: frontend
restart: on-failure
env_file:
- .env
ports:
- 3000
depends_on:
- database
- backend
networks:
- ft_transcendence
volumes:
- static-content:/var/www/html
webserver:
image: caddy/caddy:2.2.1-alpine
container_name: webserver
restart: unless-stopped
ports:
- 80:80
- 443:443
depends_on:
- database
- backend
- frontend
networks:
- ft_transcendence
volumes:
- static-content:/var/www/html
- ./deployement/webserver/srcs/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
networks:
ft_transcendence:
name: ft_transcendence
volumes:
caddy_data:
caddy_config:
static-content: