-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (54 loc) · 1.51 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
networks:
development_local:
driver: bridge
services:
php83:
container_name: php83
restart: unless-stopped
build:
context: ./php83
dockerfile: Dockerfile
volumes:
- ./source_code/backend/users_service:/var/www/local-dev
tty: true
environment:
PHP_IDE_CONFIG: "serverName=local-dev.com"
networks:
- development_local
nginx:
container_name: nginx
restart: unless-stopped
tty: true
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/local-dev.conf:/etc/nginx/templates/local-dev.conf.template
- ./source_code/backend/users_service:/var/www/local-dev
ports:
- "80:80"
- "443:443"
environment:
- LOCAL_SERVER_NAME=local-dev.com
networks:
development_local:
aliases:
- local-dev.com
database_mariadb:
container_name: database_mariadb
restart: unless-stopped
build:
context: ./database_mariadb
dockerfile: Dockerfile
tty: true
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "root"
DATABASES: >
test_db:sample.sql.xz
networks:
- development_local
volumes:
db_data: