-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (80 loc) · 2.02 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
78
79
80
81
82
83
84
85
86
87
# https://docs.docker.com/compose/compose-file/compose-file-v3/
version: "3.9"
services:
webapp:
container_name: catalytic-webapp
build:
context: .
target: development
dockerfile: misc/Dockerfile
image: "tylerlwsmith/catalytic-webapp:${BUILD_TAG:-latest}"
restart: unless-stopped
volumes:
- ./webapp:/srv/app
env_file: .env
environment:
PHP_OPCACHE_VALIDATE_TIMESTAMPS: 1
XDEBUG_ENABLE: "true"
ports:
- "9000:9000"
depends_on:
- database
webserver:
container_name: catalytic-webserver
build:
context: .
target: development
dockerfile: webserver/Dockerfile
image: "tylerlwsmith/catalytic-webserver:${BUILD_TAG:-latest}"
restart: unless-stopped
volumes:
- ./webserver/development:/etc/nginx/templates
- ./webapp/public:/srv/app/public
- ./webapp/storage/app/public:/srv/app/public/storage
ports:
- "8080:80"
devserver:
container_name: catalytic-devserver
image: node:16.9-alpine3.14
restart: unless-stopped
user: node
working_dir: /srv/app
volumes:
- ./webapp:/srv/app
command: npm run hot
ports:
- "8000:8000"
database:
container_name: catalytic-database
image: postgres:13
restart: unless-stopped
volumes:
- database:/var/lib/postgresql/data
ports:
- "${DB_PORT:-5432}:5432"
expose:
- "${DB_PORT:-5432}"
environment:
POSTGRES_DB: "${DB_DATABASE}"
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
test-database:
container_name: test-catalytic-database
image: postgres:13
restart: unless-stopped
volumes:
- test-database:/var/lib/postgresql/data
expose:
- "${DB_PORT:-5432}"
environment:
POSTGRES_DB: "${DB_DATABASE}"
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
mailhog:
image: "mailhog/mailhog:v1.0.1"
ports:
- 1025:1025
- 8025:8025
volumes:
database:
test-database: