forked from jolicode/qotd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (33 loc) · 955 Bytes
/
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
version: '3.7'
volumes:
postgres-data: {}
services:
frontend:
build:
context: 'infrastructure/docker/services/php'
target: frontend
args:
- USER_ID=${UID:-1000}
depends_on:
- postgres
volumes:
- ".:/home/app/application:cached"
- "${COMPOSER_CACHE_DIR:-~/.cache/composer}:/home/app/.composer/cache"
cron:
build:
context: 'infrastructure/docker/services/php'
target: cron
args:
- USER_ID=${UID:-1000}
depends_on:
- postgres
volumes:
- ".:/home/app/application:cached"
postgres:
build: 'infrastructure/docker/services/postgres'
environment:
POSTGRES_PASSWORD: qotd
POSTGRES_USER: qotd
POSTGRES_DB: qotd
volumes:
- postgres-data:/var/lib/postgresql/data