-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
45 lines (42 loc) · 1.14 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
services:
application:
restart: on-failure
build:
context: .
dockerfile: docker/Dockerfile
target: app-dev
volumes:
- ".:/app"
ports:
- "${DOCKER_APPLICATION_PORT:-8001}:8000"
env_file:
- docker/dev.env
environment:
WAGTAILADMIN_BASE_URL: "http://localhost:${DOCKER_APPLICATION_PORT:-8001}/"
depends_on:
- database
- memcached
frontend:
restart: on-failure
build:
context: .
dockerfile: docker/Dockerfile
target: frontend
volumes:
- ".:/app"
environment:
APP_SERVER_URL: "http://application:8000"
depends_on:
- application
database:
restart: on-failure
image: postgres:16
volumes:
- "./docker/database:/docker-entrypoint-initdb.d/"
environment:
POSTGRES_DB: "app"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
memcached:
image: memcached:latest
hostname: memcached