-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (43 loc) · 1.21 KB
/
docker-compose.yaml
File metadata and controls
47 lines (43 loc) · 1.21 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
version: '3.8'
services:
undertaker:
environment:
TOMBS_ADDRESS: fpm:12345
FPM_ADDRESS: fpm:9000
PRELOAD_FILE: /project/public/undertaker.php
HTTP_PORT: 81
STORAGE_DSN: "postgres://undertaker:undertaker@postgres/undertaker?sslmode=disable"
STORAGE_TABLE: "public.__undertaker"
# The initialization scripts create a "test" schema
TEST_STORAGE_DSN: "postgres://undertaker:undertaker@postgres/undertaker?sslmode=disable"
build:
dockerfile: Dockerfile
context: .
command: CompileDaemon -build="go build -o undertaker /app/cmd/undertaker" -command="./undertaker" -directory=/app
volumes:
- .:/app
ports:
- '8888:81'
fpm:
build:
dockerfile: Dockerfile
context: docker/fpm
volumes:
- ./docker/fpm/project/:/project
nginx:
image: nginx:latest
volumes:
- ./docker/nginx:/etc/nginx/conf.d
- ./docker/fpm/project:/project
ports:
- '8080:80'
postgres:
image: postgres:12-alpine
ports:
- "15432:5432"
environment:
POSTGRES_PASSWORD: undertaker
POSTGRES_USER: undertaker
POSTGRES_DB: undertaker
volumes:
- ./docker/postgres:/docker-entrypoint-initdb.d