-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (80 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
87 lines (80 loc) · 1.8 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
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '2'
services:
#THE FORGOTTEN SERVER
server:
image: riicksouzaa/tfs
container_name: server
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: server
SERVICE_TAGS: dev
working_dir: /srv
links:
- database
networks:
- app-network
#PHP Service
website:
image: riicksouzaa/premium-gesior:latest
container_name: website
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: website
SERVICE_TAGS: dev
working_dir: /var/www
links:
- database
volumes:
- ./:/var/www
- ../server:/usr/local/server
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- app-network
#Nginx Service
webserver:
image: jwilder/nginx-proxy
container_name: webserver
restart: unless-stopped
tty: true
ports:
- "8090:8090"
- "443:443"
volumes:
- ./:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
- ./certs:/etc/nginx/certs
- /var/run/docker.sock:/tmp/docker.sock
environment:
VIRTUAL_PROTO: https
VIRTUAL_PORT: 443
networks:
- app-network
depends_on:
- website
#MySQL Service
database:
image: mariadb:latest
container_name: database
restart: unless-stopped
tty: true
ports:
- "3308:3308"
environment:
MYSQL_DATABASE: premium-gesior
MYSQL_ROOT_PASSWORD: gesior
SERVICE_NAME: database
SERVICE_TAGS: dev
volumes:
- dbdata:/var/lib/mysql/
- ./mysql/my.cnf:/etc/mysql/my.cnf
- ./database/data.sql:/docker-entrypoint-initdb.d/db.sql
networks:
- app-network
#Docker Networks
networks:
app-network:
#Volumes
volumes:
dbdata: