-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (56 loc) · 1.15 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
version: '3.9'
services:
client:
restart: unless-stopped
build:
context: ./client
args:
PUBLIC_API_URL: ${PUBLIC_API_URL:-http://localhost:3000}
ports:
- '4321:4321'
volumes:
- ./client:/home/node/src
- /home/node/src/node_modules
depends_on:
- server
server:
restart: unless-stopped
build:
context: ./server
ports:
- '3000:3000'
volumes:
- ./server:/home/node/src
- /home/node/src/node_modules
env_file:
- ./server/.env
db:
image: postgres:14.1
restart: always
container_name: integration-tests-database
ports:
- '5432:5432'
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
POSTGRES_DB: tests
volumes:
- db:/var/lib/postgresql/data
caddy:
image: caddy:2.8.4-alpine
container_name: caddy-services
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '443:443/udp'
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
db:
driver: local
caddy_data:
caddy_config: