forked from milanpasic92/phapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (71 loc) · 1.38 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
66
67
68
69
70
71
version: '2'
services:
app:
image: 'milanpasa/phapi'
build:
context: .
dockerfile: docker/Dockerfile
container_name: phapi_container
restart: always
ports:
- '${APP_UNSECURED_PORT}:80'
- '${APP_PORT}:443'
volumes:
- '.:/app'
- './certs/localhost:/certs'
networks:
- network
depends_on:
- db
env_file:
- ./.env
db:
image: 'mysql:5.7.22'
container_name: phapi_db_container
restart: always
ports:
- '${DB_PORT}:3306'
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- 'db_data:/var/lib/mysql/'
networks:
- network
env_file:
- ./.env
portainer:
image: portainer/portainer
container_name: phapi_portainer_container
restart: always
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- 'portainer_data:/data'
ports:
- '${PORTAINER_PORT}:9000'
networks:
- network
env_file:
- ./.env
adminer:
image: adminer
container_name: phapi_adminer_container
restart: always
ports:
- '${ADMINER_PORT}:8080'
networks:
- network
env_file:
- ./.env
networks:
network:
driver: bridge
volumes:
db_data:
driver: local
portainer_data:
driver: local
app_data:
driver: local
app_backups:
driver: local