This repository was archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
74 lines (69 loc) · 1.51 KB
/
docker-compose.yaml
File metadata and controls
74 lines (69 loc) · 1.51 KB
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
version: '3.5'
networks:
saf_api:
name: symfony_api_foo
driver: bridge
services:
psql.test:
container_name: saf_pgsql
build:
context: docker/postgres
dockerfile: Dockerfile
args:
POSTGRES_VERSION: 12.2
image: foo_postgres:12.2
restart: on-failure
ports:
- "5432:5432"
volumes:
- ./.postgres:/var/lib/postgresql/data
- ./docker/postgres/db-init-scripts:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
networks:
- saf_api
php:
container_name: saf_php_fpm
build:
context: ./docker/php
dockerfile: Dockerfile
image: foo_php:7.4.8-fpm
restart: always
volumes:
- ./:/www/api
- ./docker/php/conf/www.conf:/usr/local/etc/php-fpm.d/www.conf
ports:
- "9050:9000"
depends_on:
- psql.test
networks:
- saf_api
pgadmin:
container_name: saf_pgadmin
image: dpage/pgadmin4
ports:
- "5050:80"
environment:
- PGADMIN_DEFAULT_EMAIL=user@domain.com
- PGADMIN_DEFAULT_PASSWORD=SuperSecret
volumes:
- ./.pgadmin:/var/lib/pgadmin
depends_on:
- psql.test
networks:
- saf_api
web:
container_name: saf_nginx
image: library/nginx:1.19.1
restart: on-failure
ports:
- 8080:80
volumes:
- ./:/www/api
- ./docker/nginx.d/conf/api.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- psql.test
networks:
- saf_api