-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (46 loc) · 961 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.9'
services:
nginx:
container_name: nginx
image: nginx:latest
ports:
- '8080:80'
- '4433:443'
volumes:
- .:/srv/www/cycleflow:ro
- ./docker/nginx/conf:/etc/nginx/conf.d:ro
depends_on:
- php
networks:
- main
php:
user: 1000:1000
container_name: php
working_dir: /srv/www/cycleflow
build:
context: ./docker/php
dockerfile: Dockerfile
volumes:
- .:/srv/www/cycleflow:rw
depends_on:
- database
networks:
- main
database:
container_name: db
image: postgres:${POSTGRES_VERSION:-15}-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-app}
POSTGRES_USER: ${POSTGRES_USER:-app}
volumes:
- database_data:/var/lib/postgresql/data:rw
ports:
- "5432:5432"
networks:
- main
volumes:
database_data:
networks:
main:
name: main