-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.35 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
58
59
60
61
62
63
64
65
66
services:
postgres:
image: postgres:16
container_name: eve_postgres
ports:
- "5435:5432"
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
env_file:
- ./backend/.env
volumes:
- ./backend/postgres-data:/var/lib/postgresql/data
restart: always
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: eve_api
depends_on:
- postgres
environment:
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
env_file:
- ./backend/.env
restart: always
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: eve_frontend
environment:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
env_file:
- ./frontend/.env.local
restart: always
caddy:
image: caddy:2
container_name: eve_caddy
ports:
- "80:80"
- "443:443"
volumes:
- ./backend/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
- caddy_certificates:/root/.caddy
environment:
- ACME_AGREE=true
depends_on:
- api
- frontend
restart: always
volumes:
caddy_data:
caddy_config:
caddy_certificates: