-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (72 loc) · 1.68 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
67
68
69
70
71
72
73
74
75
76
77
version: '3.3'
services:
altchademo_caddy:
hostname: altchademo_caddy
container_name: altchademo_caddy
restart: unless-stopped
build:
context: .
dockerfile: docker/caddy/Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- caddy_data:/data
- caddy_config:/config
- ./docker/caddy/caddy:/etc/caddy:cached
altchademo_db:
hostname: altchademo_db
container_name: altchademo_db
build:
context: .
dockerfile: docker/db/Dockerfile
restart: always
ports:
- "5433:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- db_data:/var/lib/postgresql/data:rw
altchademo_api:
hostname: altchademo_api
container_name: altchademo_api
build:
context: .
dockerfile: docker/api/Dockerfile
args:
- OS=${OS}
restart: always
environment:
- PHP_IDE_CONFIG=serverName=api
- HTTPS_METHOD=noredirect
volumes:
- ./api:/var/www/html:cached
- ./api/vendor:/var/www/html/vendor:delegated
- appdata5:/var/www/html/var/cache/
- appdata5:/var/www/html/var/logs/
depends_on:
- altchademo_db
altchademo_app:
hostname: altchademo_app
container_name: altchademo_app
build:
context: .
dockerfile: docker/app/Dockerfile
tty: true
ports:
- "3002:3002"
- "3003:3003"
environment:
- NODE_ENV=docker
- HTTPS_METHOD=noredirect
volumes:
- ./app:/var/app:rw,cached
depends_on:
- altchademo_api
volumes:
db_data: ~
appdata5: ~
caddy_data: ~
caddy_config: ~