-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.bak
47 lines (47 loc) · 1018 Bytes
/
docker-compose.yml.bak
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
version: '3'
services:
db:
image: mysql:5.7
restart: always
container_name: db_c
environment:
- MYSQL_ROOT_PASSWORD=
ports:
- "3306:3306"
networks:
web_net:
ipv4_address: 172.18.0.2
web:
build: .
container_name: web_c
command: uwsgi --http 0.0.0.0:8080 --module myweb.wsgi
volumes:
- .:/code
expose:
- "8080"
depends_on:
- db
networks:
web_net:
ipv4_address: 172.18.0.3
ngx:
image: nginx:latest
restart: always
container_name: ngx_c
ports:
- "80:80"
- "443:443"
volumes:
- .:/code
- ./nginx:/etc/nginx/conf.d
depends_on:
- web
networks:
web_net:
ipv4_address: 172.18.0.4
networks:
web_net:
ipam:
driver: default
config:
- subnet: 172.18.0.0/24