-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
52 lines (49 loc) · 1.1 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
version: "3.8"
networks:
frontend:
driver: ${DOCKER_NETWORKS_DRIVER}
backend:
driver: ${DOCKER_NETWORKS_DRIVER}
volumes:
postgres:
driver: ${DOCKER_VOLUMES_DRIVER}
redis:
driver: ${DOCKER_VOLUMES_DRIVER}
services:
core:
build:
context: docker/image
args:
- USER_CONTAINER=${DOCKER_USER}
- PUID=${DOCKER_PUID}
- PGID=${DOCKER_PGID}
restart: unless-stopped
depends_on:
- db
- redis
volumes:
# laravel comes up with public dir inside workdir, so we will mount only /var/www
- ./:/var/www
ports:
- ${DOCKER_PORT}:80
networks:
- frontend
- backend
db:
image: timescale/timescaledb:2.1.0-pg13
volumes:
- ${DOCKER_DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
- backend
redis:
image: redis
restart: unless-stopped
volumes:
- ${DOCKER_DATA_PATH_HOST}/redis:/data
networks:
- backend