This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
forked from PicPay/picpay-desafio-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
65 lines (63 loc) · 1.62 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
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
services:
picpay-test-postgres:
image: postgres:11-alpine
container_name: picpay-test-postgres
env_file:
- ./scripts/docker/postgres-11/.env
ports:
- 35432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 10s
retries: 3
picpay-test-redis:
image: redis:6.0.5
container_name: picpay-test-redis
command: redis-server
ports:
- 16379:6379
picpay-test-symfony-nginx:
container_name: picpay-test-symfony-nginx
build:
context: .
dockerfile: ./scripts/docker/nginx/Dockerfile
ports:
- 14000:4000
depends_on:
- picpay-test-symfony-php-fpm
volumes:
- app-volume:/var/www/html
picpay-test-symfony-php-fpm:
container_name: picpay-test-symfony-php-fpm
build:
context: .
dockerfile: ./scripts/docker/php-fpm/Dockerfile
args:
- env_database_url="pgsql://postgres:password@picpay-test-postgres:5432/picpay_dev_test?serverVersion=11.0"
env_file:
- ./scripts/docker/php-fpm/.env
depends_on:
- picpay-test-postgres
- picpay-test-redis
links:
- picpay-test-postgres
- picpay-test-redis
volumes:
- app-volume:/var/www/html
picpay-test-symfony-app-init:
container_name: picpay-test-symfony-app-init
build:
context: .
dockerfile: scripts/docker/app-init/Dockerfile
env_file:
- ./scripts/docker/php-fpm/.env
depends_on:
- picpay-test-symfony-php-fpm
links:
- picpay-test-symfony-php-fpm
volumes:
- app-volume:/var/www/html
volumes:
app-volume: